package com.qingfeng.medical.biz.message.domain.dto;

import com.qingfeng.medical.biz.message.domain.enums.CustomerTypeEnum;
import com.qingfeng.medical.biz.message.domain.enums.ReadStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 病情咨询表
 *
 * @author 清风学Java
 * @date 2023-04-14 14:47:16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "病情咨询表")
public class DiseaseConsultationSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户Id不能为空")
    private Long userId;

    @ApiModelProperty(value = "医生id")
    @NotNull(message = "医生Id不能为空")
    private Long doctorId;

    @ApiModelProperty(value = "用户类型 （患者，医生  枚举设置）")
    @NotNull(message = "用户类型不能为空")
    private CustomerTypeEnum customerType;

    @ApiModelProperty(value = "咨询/回复内容")
    @NotBlank(message = "咨询内容不能为空")
    private String newsContent;

    @ApiModelProperty(value = "已读状态（默认未读）")
    @NotNull(message = "状态不能为空")
    private ReadStatusEnum readStatus;
}
